package com.jeeplus.modules.monitor.model;


 public class Message<Data>
{
  private String msg;
  private int code;
  private Data data;

  public Message(String msg, int code,  Data data)
  {
    this.msg = msg;
    this.code = code;
     this.data = data;
  }

  public Message(String msg, int code )
  {
    this.msg = msg;
    this.code = code;
   }

  public String getMsg() {
    return this.msg;
  }
  public void setMsg(String msg) {
    this.msg = msg;
  }

  public int getCode() {
    return this.code;
  }
  public void setCode(int code) {
    this.code = code;
  }


  public Data getData()
  {
    return this.data;
  }
  public void setData(Data data) {
    this.data = data;
  }

  public String toString() {
    return "Message [msg=" + this.msg + ", code=" + this.code +
      ", data=" + this.data + "]";
  }
}
